#include <string.h>
#include "stdlib.h"
#include "stdio.h"
#include "Person.h"

/**
@author		Paulo Augusto Pimenta Filho
@version	1.0
This is the super class Person that has the main attributes for a person
*/

namespace std{


	/**
	* Constructors Method
	*/
	Person::Person(){
		name = "";
		cpf = "";
		age = 0;

	}

	Person::Person(char n[], char c[], int a){
		name = n;
		cpf = c;
		age = a;

	}

	/**
	*	Destructor Method
	*/
	Person::~Person(){
		delete name;
		delete cpf;
	}

	/**
	*	Getters and Setters methodos
	*/
	char*	Person::getCpf(){
		return cpf;
	}

	void	Person::setCpf(char c[]){
		cpf = c;
	}

	char*	Person::getName(){
		return name;
	}

	void	Person::setName(char n[]){
		name = n;
	}

	int Person::getAge(){
		return age;
	}

	void Person::setAge(int a){
		age = a;
	}

}

